﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="DisplayDefectReport.aspx.cs" Inherits="CodeDemon.Views.Review.DisplayDefectReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">


            <table class='tablesorter' id='myTable'><thead><tr><th nowrap='true'>REV#&nbsp;&nbsp;&nbsp;&nbsp;</th><th>Message</th><th nowrap='true'>Status</th><th nowrap='true'>Date</th><th nowrap='true' width='6%'>Author</th><th nowrap='true' width='8%'>Defect</th></tr></thead><tbody>
    <%
        var revs = from revList in ViewData.Model.DAO.GetSVNLogEntriesByDefectNumber(Int32.Parse(ViewData.Model.VarHash["defectID"])) select revList;

        foreach (var rev in revs)
        {

            %>
            <tr>
                <td> <%= rev.Revision %></td>
                <td> <%= rev.LogMessage %></td>
                <% if (rev.ReviewCount == null)
                   { %>
                    <td>NOT Reviewed</td>
                <% }
                   else
                   { %>
                    <td>In <%= rev.ReviewCount%> Reviews</td>
                <% } %>
                <td> <%= rev.Date %></td>
                <td> <%= rev.Author %></td>
                <td> <%= rev.DefectNumber %></td>
            
            </tr>
            
            <%
        }
        
         %>
    </tbody></table>

<script type="text/javascript">
        $(document).ready(function() 
        { 
             $("#myTable").tablesorter({widthFixed: true, widgets: ['zebra']});  
        } ); 
    </script>

</asp:Content>
